<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import {
  localRead
} from '@/libs/util'
export default {
  name: 'App',
  created () {
    this.setLocale()
  },
  methods: {
    setLocale () {
      const locale = localRead('local') || 'zh-CN'
      this.$store.commit('setLocale', locale)
    }
  }
}
</script>

<style lang="less">
.size{
  width: 100%;
  height: 100%;
}
html,body{
  .size;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
#app {
  .size;
}
</style>
